<?php
$oJobConfigTypes = JobHandler::getConfigTypes();
$oJobs = JobHandler::getJobs();
$oConfig = $oJobs[$_SESSION['iJobID']]->getConfig();
?>
<form action="index.php" method="post">
<input type="hidden" name="sAction" value="job-setconfig">
<table cellspacing="0" style="width: 100%">
<?php
foreach ($oJobConfigTypes as $sThisID => $oThisConfigType)
{
	?>
	<tr>
	<?php
	if ($oThisConfigType['type'] == 'bool')
	{
		?>
		<td class="listentity" style="width: 1px;"><input type="checkbox" name="<?php print $sThisID ?>" <?php print ($oConfig[$sThisID] ? 'checked' : '') ?>></td>
		<?php
	}
	?>
		<td class="listentity">
	<?php
	echo $oThisConfigType['caption'];
	if ($oThisConfigType['comment'])
	{
		echo '<br><span class="small">('.nl2br(wordwrap($oThisConfigType['comment'], 50)).')</span>';
	}
	?>
		</td>
	</tr>
	<?php
}
?>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="submit" value="Vista">
		</td>
	</tr>
</table>
</form>
